package org.lzuploader.model;

/** This class lets the program manage different locales.
 * 
 * @author Emmanuel Cron
 *
 */
public class Locale
{
    /** Id of the locale. */
    private String id;
    /** Literal name of the locale. */
    private String literal;
    
    /** Creates a new locale with a specific id and its literal definition.
     * @param languageId        Id of the new locale.
     * @param languageLiteral   Literal name of the new locale.
     */
    public Locale(final String languageId, final String languageLiteral)
    {
        id = languageId;
        literal = languageLiteral;
    }
    
    /** Returns the id of this locale.
     * @return  The id of the locale.
     */
    public String getId()
    {
        return id;
    }
    
    /** Returns the literal name of this locale.
     * @return  The literal name of the locale
     */
    public String getLiteral()
    {
        return literal;
    }
}
